<%@ Control Language="C#" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%HtmlBlock method="processList"; %>
<%Conditional on = "CurrentBizObj.product.metaType==-Department"; %>
<div class="departmentlistbox">
	<div class="title"><asp:HyperLink ID="product_title" runat="server" NavigateUrl="$navLink$" /></div>
	<div class="summary"><swf:ReadOnlyText ID="product_summary" runat="server" /></div>
</div>
<%EndConditional; %>

<%Conditional on = "CurrentBizObj.product.metaType!=-Department"; %>
<div class="productlistbox">
	<table><tr><td>
		<div class="mediaArea">
			<asp:HiddenField ID="id" runat="server" />
			<asp:HyperLink ID="product_primaryPicture_name" runat="server" ImageUrl="~/$product.mediaCacheName$/$imageRes$/$product.primaryPicture.name$" 
				EnableViewState="false"  NavigateUrl="$navLink$"/>
		</div>
	</td><td>
		<div class="title"><asp:HyperLink ID="product_title" runat="server" NavigateUrl="$navLink$" /></div>
		<div class="summary"><swf:ReadOnlyText ID="product_summary" runat="server" /></div>
		<div class="priceArea"><asp:Label id="_priceLbl" runat="server">Price:</asp:Label> <swf:ReadOnlyText id="product_sellPriceFormated" runat="server" />&nbsp;<swf:ReadOnlyText id="product_sellPriceDescription" runat="server" /></div>
	</td></tr></table>
</div>
<%EndConditional; %>
<%EndHtmlBlock; %>
